package com.net.web.server.strategy;


import org.springframework.beans.factory.InitializingBean;

import java.io.IOException;
import java.net.Socket;

/**
 * @author hjh
 */
public interface IMessageStrategy<T> extends InitializingBean {
    /**
     * 对接收客户端的消息进行处理
     *
     * @param t            t
     * @param clientSocket 客户端socket
     * @param sessionId    客户端标识
     * @throws IOException 异常
     */
    void execute(T t, Socket clientSocket, Long sessionId) throws IOException;
}
